package com.wjgl.action;

import com.opensymphony.xwork2.ActionSupport;
import com.wjgl.service.FileService;

public class HideFileAction extends ActionSupport {
	private FileService fileService;
	private Integer fileId;
	public FileService getFileService() {
		return fileService;
	}
	public void setFileService(FileService fileService) {
		this.fileService = fileService;
	}
	public Integer getFileId() {
		return fileId;
	}
	public void setFileId(Integer fileId) {
		this.fileId = fileId;
	}
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		//System.out.println(fileId);
		fileService.hideFileById(fileId);
		return null;
	}
}
